package com.jintoufs.util.resource;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2017/7/18,018.
 */
public class ResourceTreeNode {
    /** 树节点*/
    private Node data;
    /** 子树集合*/
    private List<ResourceTreeNode> childList;

    /**
     * 构造函数
     *
     * @param data 树节点
     */
    public ResourceTreeNode(Node data)
    {
        this.data = data;
        this.childList = new ArrayList<ResourceTreeNode>();
    }

    /**
     * 构造函数
     *
     * @param data 树节点
     * @param childList 子树集合
     */
    public ResourceTreeNode(Node data, List<ResourceTreeNode> childList)
    {
        this.data = data;
        this.childList = childList;
    }

    public Node getData() {
        return data;
    }

    public void setData(Node data) {
        this.data = data;
    }

    public List<ResourceTreeNode> getChildList() {
        return childList;
    }

    public void setChildList(List<ResourceTreeNode> childList) {
        this.childList = childList;
    }
}
